from django.urls import path
from .views import document_api, document_id_api, other_documents_api, other_document_id_api, client_documents_crud, \
    client_document_crud, create_client_document, retrieve_client_document, create_appointment_notes, \
    delete_and_update_appointment_notes, create_appointment_notes_file, delete_appointment_note
app_name = 'document'


urlpatterns = [
    path('document', document_api, name='document_api'),
    path('document/<str:document_id>', document_id_api, name='document_id_api'),
    path('other-documents', other_documents_api, name='document_id_api'),
    path('other-documents/<str:document_id>', other_document_id_api, name='other_document_id_api'),
    path('client-documents', client_documents_crud, name='list-client-documents'),
    path(r'client-documents/<str:pk>', client_document_crud, name='client-document-crud'),
    path('client-documents/create/', create_client_document, name='create-client-document'),
    path('retrieve-client-documents/<str:pk>', retrieve_client_document, name='retrieve-client-document'),
    path('appointment-notes', create_appointment_notes, name='appointment-notes'),
    path('appointment-notes/<int:pk>', delete_and_update_appointment_notes, name='update-appointment-notes'),
    path('appointment-notes/<int:notes_pk>/appointment-notes-files', create_appointment_notes_file, name='update-appointment-notes'),
    path('appointment-notes/<int:notes_pk>/appointment-notes-files/<int:pk>', delete_appointment_note, name='update-appointment-notes'),
]